package com.base.components.common.util;

import tk.mybatis.mapper.genid.GenId;

import java.util.UUID;

/**
 * MybatisUUIDGenId
 *
 * @author <a href="drakelee1221@gmail.com">LiGeng</a>
 * @version v1.0.0
 * @date 2019-01-21 11:33
 */

public class MybatisUUIDGenId implements GenId<String> {
  @Override
  public String genId(String table, String column) {
    return UUID.randomUUID().toString().replace("-", "");
  }
}
